package com.hoki.zj.hrm.dto;

import com.hoki.zj.hrm.domain.Employee;
import com.hoki.zj.hrm.domain.Tenant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class EnteringDto {

    @Valid
    private Tenant tenant;

    @Valid
    private Employee employee;

    @NotNull(message = "请选择套餐") // 非空验证
    private Long mealId;

}
